package 杨佳佳.第三章作业;

import java.util.Scanner;

//3、用户输入正方形边长，用*打印出实心正方形。
public class Zheng {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入正方形边长: ");
        int a= scanner.nextInt();
        for (int i = 0;i<a ; i++) {
            System.out.println();
            for (int j = 0;j<a ; j++) {
                System.out.print(" * ");
            }
        }
    }
}

